package controller.listeners.posCodeCorps;



import model.ManualCodeCorpTestModel;
import model.PosCodeCorpsModel;

import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

import view.ManualCodeCorpTestView;
import view.PosCodeCorpsView;

public class PosCodeCorpsSelectionListener implements Listener {


	private PosCodeCorpsView _view;
	private PosCodeCorpsModel _model;
	
			public PosCodeCorpsSelectionListener(PosCodeCorpsView view,
					PosCodeCorpsModel model) {
				this._model = model;
				this._view = view;
			}
			
			public void handleEvent(Event event) {
				String center_code = _view.getSelectedCorpCode();
				_model.setSelected_center_code(center_code);
			}
		}